home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / raytrace / rayshade / graphtal.lzh / Graphtal.Amiga / BBoxDevice.h < prev    next >
C/C++ Source or Header  |  1992-11-17  |  1KB  |  46 lines

  1. /*
  2.  * BBoxDevice.h  - class definition for bounding box device driver.
  3.  *
  4.  * Copyright (C) 1992, Christoph Streit (streit@iam.unibe.ch)
  5.  *                     University of Berne, Switzerland
  6.  * All rights reserved.
  7.  *
  8.  * This software may be freely copied, modified, and redistributed
  9.  * provided that this copyright notice is preserved on all copies.
  10.  *
  11.  * You may not distribute this software, in whole or in part, as part of
  12.  * any commercial product without the express consent of the authors.
  13.  *
  14.  * There is no warranty or other guarantee of fitness of this software
  15.  * for any purpose.  It is provided solely "as is".
  16.  *
  17.  */
  18.  
  19. #ifndef BBoxDevice_H
  20. # define BBoxDevice_H
  21.  
  22. #include "DeviceDriver.h"
  23.  
  24. /*___________________________________________________________ BBoxDevice
  25.  *
  26.  * Don't do any graphic stuff. Just calculate the bounding box
  27.  * of the object.
  28.  */
  29.  
  30. class BBoxDevice : public DeviceDriver 
  31. {
  32. public:
  33.   BBoxDevice(Options*);
  34.  
  35.   void begin();
  36.   void end(const BoundingBox&);
  37.   void cylinder(const Vector&, const Vector&, real);
  38.   void cone(const Vector&, real, const Vector&, real);
  39.   void sphere(const Vector&, real);
  40.   void polygon(Polygon*);
  41. };
  42.  
  43. #endif // BBoxDevice_H
  44.  
  45.  
  46.